﻿using System;

namespace Msngr
{
    public class Status
    {
        private const string constOnline = "Online";
        private const string constOffline = "Offline";
        private const string constInvisible = "Invisible";

        public static Status Online
        {
            get { return (Status)"Online"; }
        }

        public static Status Offline
        {
            get { return (Status)"Offline"; }
        }

        public static Status Invisible
        {
            get { return (Status)"Invisible"; }
        }

        public static implicit operator Status(string type)
        {
            switch (type)
            {
                default:
                    return constOnline;
                case "Ofline":
                    return constOffline;
                case "Invisible":
                    return constInvisible;
            }
        }
    }
}
